package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BDeviceQuantitiesDao;
import com.hongxun.modules.api.entity.BDeviceQuantitiesEntity;
import com.hongxun.modules.api.service.BDeviceQuantitiesService;



@Service("bDeviceQuantitiesService")
public class BDeviceQuantitiesServiceImpl implements BDeviceQuantitiesService {
	@Autowired
	private BDeviceQuantitiesDao bDeviceQuantitiesDao;
	
	@Override
	public BDeviceQuantitiesEntity queryObject(String guid){
		return bDeviceQuantitiesDao.queryObject(guid);
	}
	
	@Override
	public List<BDeviceQuantitiesEntity> queryList(Map<String, Object> map){
		return bDeviceQuantitiesDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bDeviceQuantitiesDao.queryTotal(map);
	}
	
	@Override
	public void save(BDeviceQuantitiesEntity bDeviceQuantities){
		bDeviceQuantities.setGuid(UUID.randomUUID().toString());
		bDeviceQuantitiesDao.save(bDeviceQuantities);
	}
	
	@Override
	public void update(BDeviceQuantitiesEntity bDeviceQuantities){
		bDeviceQuantitiesDao.update(bDeviceQuantities);
	}
	
	@Override
	public void delete(String guid){
		bDeviceQuantitiesDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bDeviceQuantitiesDao.deleteBatch(guids);
	}
	@Override
	public void deleteByDguid(String[] guids )
	{
		bDeviceQuantitiesDao.deleteByDguid(guids);
	}
}
